<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo-12-列表渲染</title>
    <script type="text/javascript" src="../JS/vue.js"></script>
</head>
<body>
<div id="root">
    <h3>{{ name }}</h3>
    <h3>{{ address }}</h3>
</div>

<script text="text/javascript">
    const vm = new Vue({
        el: '#root',

        data: {
            name: '尚硅谷',
            address: '北京',
            student: {
                name: 'Tom',
                age: {
                    rAge: 40,
                    sAge: 29,
                },
                friend: [{
                    name: 'Jerry',
                    age: 35,
                }]
            }
        },
    })
</script>
</body>
</html>